package Atm;

public class Cq{
    private static int price=10000;
    private static int money;

    public static int getMoney() {
        return money;
    }

    public static void setMoney(int money) {
        Cq.money = money;
    }

    public static int getPrice() {
        return price;
    }

    public static void setPrice(int price) {
        Cq.price = price;
    }

    public void Cq1(){
        setPrice(this.price-=getMoney());
        System.out.println("你已成功取出"+getMoney()+"元");
    }
    public void Qq(){
        setPrice(getPrice()+getMoney());
        System.out.println("你已成功存入"+getMoney()+"元");
    }
    public void Ckye(){
        System.out.println("你的余额为："+getPrice());
    }
}
